﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Logistics.DataManage.Server
{
    public interface IRemoteDateService
    {
        /// <summary>
        /// 获取用户状态
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="psd"></param>
        /// <returns>0：停用，-1：不存在；1：可用</returns>
        int GetUserState(string userName, string psd);
        /// <summary>
        /// 申请注册（C/S专用）
        /// </summary>
        /// >MAC地址
        /// 硬盘型号
        /// CPU型号
        /// IP
        /// 主机名
        /// 创建人
        ///备注
        /// <returns>成功：1；失败：0</returns>
        int ApplicationRegedit(List<string> list);
        
        /// <summary>
        /// 获取服务器数据集
        /// </summary>
        /// <param name="where"></param>
        /// <param name="FieldSet"></param>
        /// <param name="tabTable"></param>
        /// <returns></returns>
        DataSet GetSynchronous(string where, string FieldSet, string tabTable);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="SiteId"></param>
        /// <param name="dateStart"></param>
        /// <param name="dateEnd"></param>
        /// <returns></returns>
        DataSet GetCustomers(String SiteId,DateTime dateStart,DateTime dateEnd);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="SiteId"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        DataSet GetCustomers(string SiteId, int pageIndex, int pageSize);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="SiteId"></param>
        /// <returns></returns>
        int GetCustomerCount(string SiteId);
        /// <summary>
        /// 上传运单信息
        /// </summary>
        /// <param name="BillsData"></param>
        /// <returns></returns>
        String[] UploadBills(DataSet BillsData);
        /// <summary>
        /// 上传日志-新修改
        /// </summary>
        /// <returns></returns>
        String[] UpLoadLogs(DataSet ds);
    }
}
